package com.runfast.paotui.entity;


import lombok.Data;

import java.util.List;

/**
 * @author: lijin
 * @date: 2018年03月29日
 */
@Data
public class BicyclingResponse {

    private Integer errcode;
    private String errdetail;
    private String errmsg;
    private Data data;
    List<Path> paths;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrdetail() {
        return errdetail;
    }

    public void setErrdetail(String errdetail) {
        this.errdetail = errdetail;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    @lombok.Data
    public static class Data {
        private String origin;
        private String destination;
        private List<Path> paths;

        public List<Path> getPaths() {
            return paths;
        }

        public void setPaths(List<Path> paths) {
            this.paths = paths;
        }
    }

    @lombok.Data
    public static class Path {

        private Integer distance;
        private Integer duration;
        private List<Step> steps;

        public Integer getDistance() {
            return distance;
        }

        public void setDistance(Integer distance) {
            this.distance = distance;
        }

        public Integer getDuration() {
            return duration;
        }

        public void setDuration(Integer duration) {
            this.duration = duration;
        }

        public List<Step> getSteps() {
            return steps;
        }

        public void setSteps(List<Step> steps) {
            this.steps = steps;
        }
    }

    @lombok.Data
    public static class Step {

        private String instruction;
        private String road;
        private Integer distance;
        private String orientation;
        private Integer duration;
        private String polyline;
        private String action;
        private String assistant_action;
    }
}
